import React from 'react'
import { useRoutes } from "react-router-dom";
import UserList from '../views/user/UserList.js';
export const route = [{
    path: "/",
    label: '主页',
    key: '1',
    element: <UserList></UserList>,
},
{
    path: "/user-manage",
    title: "用户管理",
    children: [
        {
            path: "/user-manage/list",
            title: "用户列表",
            element: <UserList></UserList>,
        }
    ]
},
{
    path: "/detail/:id",
    element: '',
    label: '详情',
    key: '3',
}
]
export default function IndexRouter() {
    const routes = useRoutes(route);
    console.log(routes, 'sssssssss');
    return (routes)
}

